﻿Ext.extend(NExt.form.Label, Ext.form.Label, {
    getModel: function() {
        return this.model;
    },

    setModel: function(model) {
        this.model = model;
        if (Ext.isEmpty(this.displayField)) {
            this.setText(model);
            return;
        }

        var displayValue = this.model[this.displayField];
        this.setText(displayValue);
    }
});